import VueRouter from "vue-router";
import Layout from '@/views/Layout.vue';

const routes = [
    {
        path: '/',
        redirect: '/home', 
        component: Layout,
        children: [
            {
                path: '/home',
                component: () => import('@/views/Home.vue')
            },
            {
                path: '/ciphertool',
                component: () => import('@/views/Cipher.vue')
            },
            {
                path: '/about',
                component: () => import('@/views/About.vue')
            },
        ]
    },
];

const router = new VueRouter({
    routes,
})

export default router;